package com.haizhi.crm.sys.auth.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by yangyijun on 2018/5/24.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    private Long id;
    private String userNo;
    private String name;
    private String sex;
    private Long institutionCode;
    private String institutionName;
    private String departmentName;
    private Long positionCode;
    private String positionName;
    private String email;
    private String phone;
    private boolean isManager = false;

    public UserVo(Long id, String userNo) {
        this.id = id;
        this.userNo = userNo;
    }

    public UserVo(String userNo, Long id, String name, String sex, Long institutionCode, String institutionName, String departmentName, Long positionCode, String positionName
            , String email, String phone) {
        this.userNo = userNo;
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.institutionCode = institutionCode;
        this.institutionName = institutionName;
        this.departmentName = departmentName;
        this.positionCode = positionCode;
        this.positionName = positionName;
        this.email = email;
        this.phone = phone;
    }
}
